home *** CD-ROM | disk | FTP | other *** search
- Path: informatik.tu-muenchen.de!ganterth
- From: ganterth@mathematik.tu-muenchen.de (Thomas Ganter)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Removing a patch - solved?
- Date: 01 Feb 1996 12:43:51 GMT
- Organization: Math. Institut der TU Muenchen
- Distribution: world
- Message-ID: <1996Feb1.134351@mathematik.tu-muenchen.de>
- References: <1996Jan22.150212.23377@ludens> <4e1p58$4l2@misery.millcomm.com> <815.6602T1142T756@norconnect.no> <1433.6603T1100T1439@stud.cs.uit.no> <slrn4h17b3.5rq.ing9435@xerxes.to.mh.se>
- NNTP-Posting-Host: sunbulirsch8.mathematik.tu-muenchen.de
- X-newsreader: xrn 7.00
-
- > Wouldn't this work:
- >
- > patch:
- > addq.l #1,counter
- >
- > ; Patch stuff
- >
- >exit_patch:
- > subq.l #1,counter
- > rts
- >
- >
- >RemovePatch()
- >{
- > Forbid();
- > while(has_function_been_repacthed())
- > {
- > Permit();
- > Delay_or_notify_user();
- > Forbid();
- > }
- >
- > Restore_old_patch();
-
- No, but, as we already know, there is no way to simply
- resore the old patch since our patch allready might have been
- 'overpatched' resulting in the newer patch jumping into out
- unloaded patch resulting in a potentially dangerous situation.
-
- > while(counter > 0)
- > {
- > Permit();
- > Delay_or_notify_user();
- > Forbid();
- > }
- > Permit();
- > unload_patch_code();
- >}
-
- - Thomas
-
- ------------------------------------------------------------------------------
- Thomas Ganter Student der Mathematik
- Postweg 3 email: ganterth@mathematik.tu-muenchen.de
- 83209 Prien am Chiemsee FAX : (0) 8051 - 63179
- Bavaria, Germany Phone: (0) 8051 - 61895 & 62054
- ------------------------------------------------------------------------------
- Amiga Developer (ETG 249) - A3000/14Megs/550MB HD/PicassoII
- ------------------------------------------------------------------------------
-
- Mathematicians are like Frenchmen: whenever you say something to them,
- they translate it into their own language, and at once it is something
- entirely different. J. W. v. Goethe
-
-